import request from '@/utils/request'

// 查询溯源界面配置列表
export function listSettings(query) {
  return request({
    url: '/trace/settings/list',
    method: 'get',
    params: query
  })
}

// 查询溯源界面配置详细
export function getSettings() {
  return request({
    url: '/trace/settings/information',
    method: 'get'
  })
}

// 新增溯源界面配置
export function addSettings(data) {
  return request({
    url: '/trace/settings',
    method: 'post',
    data: data
  })
}

// 修改溯源界面配置
export function updateSettings(data) {
  return request({
    url: '/trace/settings',
    method: 'put',
    data: data
  })
}

// 删除溯源界面配置
export function delSettings(id) {
  return request({
    url: '/trace/settings/' + id,
    method: 'delete'
  })
}

// 导出溯源界面配置
export function exportSettings(query) {
  return request({
    url: '/trace/settings/export',
    method: 'get',
    params: query
  })
}